import request from '@/utils/request'

export function publish(data) {
  return request({
    url: '/web/post/publish',
    method: 'post',
    data
  })
}

export function upgrade(data) {
  return request({
    url: '/web/post/upgrade',
    method: 'post',
    data
  })
}

export function fetchList(data,type) {
  return request({
    url: '/web/post/list/'+type,
    method: 'post',
    data
  })
}
